package com.training.action.chenhao;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.training.pojo.chengshu.UDept;
import com.training.pojo.chengshu.UUser;
import com.training.service.chenhao.EmpService;

public class SearchempAction extends ActionSupport{
   private EmpService empser;
   private List<UUser>list;
   private List<UDept>dlist;
   private String type;
   private String name;
   private String did;
   private String sex;
	public String execute(){
		int utype=Integer.parseInt(type);
		int deptid=Integer.parseInt(did);
		int se=Integer.parseInt(sex);
		System.out.println("type:"+type+"name:"+name+"did:"+did+"sex:"+sex);
	 list=empser.serachemp(utype, deptid, name, se);
	 dlist=empser.deptname();
	  return SUCCESS;
  }
	public EmpService getEmpser() {
		return empser;
	}
	public void setEmpser(EmpService empser) {
		this.empser = empser;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDid() {
		return did;
	}
	public void setDid(String did) {
		this.did = did;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public List<UUser> getList() {
		return list;
	}
	public void setList(List<UUser> list) {
		this.list = list;
	}
	public List<UDept> getDlist() {
		return dlist;
	}
	public void setDlist(List<UDept> dlist) {
		this.dlist = dlist;
	}
	
	
}
